package com.zzh.weixinsell.dao;

import com.zzh.weixinsell.model.pojo.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface OrderDetailMapper {
    int deleteByPrimaryKey(String detailId);

    int insert(OrderDetail record);

    OrderDetail selectByPrimaryKey(String detailId);

    int updateByPrimaryKey(OrderDetail record);

    @Select("select * from order_detail where order_id = #{order_id}")
    List<OrderDetail> findByOrderId(@Param("order_id") String order_id);
}